<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> 
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
<script>  
function checkprice(id){
	$("#price"+id).hide();
	$("#inputprice"+id).show();
	$("#inputprice"+id).focus();
}	
function subprice(id){
	var price=$("#inputprice"+id).val();
	if($.trim(price)==""){
		parent.layer.msg("请输入展位价格！",2,8,function(){location.reload();});return false;
	}
	var pytoken=$("#pytoken").val();
	$.post("index.php?m=zph_space&c=ajax",{id:id,price:price,pytoken:pytoken},function(data){
		$("#price"+id).html(price);
		$("#price"+id).show();
		$("#inputprice"+id).hide();
		if(data!='1'){config_msg(data);}else{location.reload();}
	})
}
function clickname(id){
	if(document.getElementById('msg'+id).style.display=='none'){
		document.getElementById('msg'+id).style.display='block';
		$("#msg"+id).attr("class","open");
		}else{
		document.getElementById('msg'+id).style.display='none';
		$("#msg"+id).attr("msg","close");
	}
}
function showclassall(id,type){
	if(type==1){
		$("#img"+id).html('<a href="javascript:;" onclick="showclassall(\''+id+'\',\'2\');"><img src="images/iconv/jian.png"></a>');
		$(".class"+id).show();
	}else{
		$("#img"+id).html('<a href="javascript:;" onclick="showclassall(\''+id+'\',\'1\');"><img src="images/iconv/jia.png"></a>');
		$(".class"+id).hide();
	}
}
</script>
<title>后台管理</title>
</head>
<body class="body_ifm">
<span id="temp"></span>

<div class="infoboxp"> 

<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">管理员添加招聘会场后招聘会可以实现“区域、展位”进行自主设置，展位设置积分！设置完成后企业可在线付费报名参加招聘会等操作。</div>
</div>
</div>
<div class="clear"></div>
<div class="admin_new_search_box">
<a href="index.php?m=zph_space&c=classadd" class="admin_new_cz_tj" style="margin-left:0px;">+ 添加区域</a>
</div>
<div class="clear"></div>



<div class="table-list">
  <div class="admin_table_border">
  <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe> 
  <form action="index.php?m=zph_space&c=del" method="post" id='myform' target="supportiframe">   
  <input type="hidden" name="pytoken" id='pytoken' value="{yun:}$pytoken{/yun}">
<table width="100%">
	<thead>
	<tr class="admin_table_top">
		<th width="50"><label for="chkall"> <input type="checkbox" id='chkAll' onclick='CheckAll(this.form)' /></label></th>
		<th>编号</th>
		<th align="left">名称<span class="clickup">(点击修改)</span></th>
		{yun:}if $smarty.get.c=='up'{/yun}
        <th width="100">展位价格</th>
		{yun:}/if{/yun}
        <th width="100">排序</th>
		<th width="220" class="admin_table_th_bg">操作</th>
	</tr>
	</thead>
	<tbody>	
    {yun:}if empty($id){/yun}
	{yun:}foreach item=v key=key from=$position{/yun}
	<tr align="center" {yun:}if ($key+1)%2=='0'{/yun}class="admin_com_td_bg"{yun:}/if{/yun} id="list{yun:}$v.id{/yun}">
   		<td width="50"><input type="checkbox" value="{yun:}$v.id{/yun}" name='del[]' onclick='unselectall()' rel="del_chk" /></td>
		<td class="ud">{yun:}$v.id{/yun}</td>
		<td  align="left" >一级分类：
        <span onClick="checkname('{yun:}$v.id{/yun}');" id="name{yun:}$v.id{/yun}" style="cursor:pointer;">{yun:}$v.name{/yun}</span>
        <input class="input-text hidden" type="text" id="inputname{yun:}$v.id{/yun}"value="{yun:}$v.name{/yun}" onBlur="subname('{yun:}$v.id{/yun}','index.php?m=zph_space&c=ajax');"/>
		<img class="" style="padding-left:5px;cursor:pointer;" title="" src="images/xg.png" onClick="checkname('{yun:}$v.id{/yun}');"/>
		</td>
        <td><span onClick="checksort('{yun:}$v.id{/yun}');" id="sort{yun:}$v.id{/yun}" style="cursor:pointer;">{yun:}$v.sort{/yun}</span>
        <input class="input-text hidden" type="text" id="input{yun:}$v.id{/yun}" size="10" value="{yun:}$v.sort{/yun}" onBlur="subsort('{yun:}$v.id{/yun}','index.php?m=zph_space&c=ajax');" style="width:80px;"/>
		<img class="" style="padding-left:5px;cursor:pointer;" title="" src="images/xg.png" onClick="checksort('{yun:}$v.id{/yun}');"/>
		</td>
		<td class="ud">
			<A href="{yun:}$config.sy_weburl{/yun}/{yun:}$v.pic{/yun}" class="admin_new_c_bth admin_new_c_bth_yl" target="_blank">预览</A> 
        	<A href="index.php?m=zph_space&c=classadd&id={yun:}$v.id{/yun}" class="admin_new_c_bth">修改</A>
            <A href="index.php?m=zph_space&c=up&id={yun:}$v.id{/yun}" class="admin_new_c_bth ">位置</A> 
            <A href="javascript:void(0)" onClick="layer_del('确定要删除？', 'index.php?m=zph_space&c=del&delid={yun:}$v.id{/yun}');" class="admin_new_c_bth admin_new_c_bth_sc ">删除</a>
        </td>
	</tr>
	
    {yun:}/foreach{/yun}
    {yun:}/if{/yun}
	{yun:}if $id{/yun}
	<tr align="center" id="list{yun:}$onejob.id{/yun}">
   		<td width="50"><input type="checkbox" value="{yun:}$onejob.id{/yun}" name='del[]' onclick='unselectall()' rel="del_chk" /></td>
		<td class="ud" width="60">{yun:}$onejob.id{/yun}</td>
		<td class="ud"  align="left" colspan="2">一级分类：<span onClick="checkname('{yun:}$onejob.id{/yun}');" id="name{yun:}$onejob.id{/yun}" style="cursor:pointer;">{yun:}$onejob.name{/yun}</span><input class="input-text hidden" type="text" id="inputname{yun:}$onejob.id{/yun}"value="{yun:}$onejob.name{/yun}" onBlur="subname('{yun:}$onejob.id{/yun}','index.php?m=zph_space&c=ajax');">
        <b id="img{yun:}$two.id{/yun}"><a href="javascript:;" onclick="showclassall('{yun:}$two.id{/yun}','1');"><img src="images/iconv/jia.png"></a></b>
        </td>
        <td><span onClick="checksort('{yun:}$onejob.id{/yun}');" id="sort{yun:}$onejob.id{/yun}" style="cursor:pointer;">{yun:}$onejob.sort{/yun}</span><input class="input-text hidden" type="text" id="input{yun:}$onejob.id{/yun}" size="10" value="{yun:}$onejob.sort{/yun}" onBlur="subsort('{yun:}$onejob.id{/yun}','index.php?m=zph_space&c=ajax');"></td>
		<td class="ud" width="180"><A href="javascript:void(0)" onClick="layer_del('确定要删除？', 'index.php?m=zph_space&c=del&delid={yun:}$onejob.id{/yun}');" class="admin_cz_sc">删除</a></td>
	</tr>
	{yun:}foreach item=two from=$twojob{/yun}
    {yun:}assign var="two_class_id" value=$two.id{/yun}
	<tr align="center" id="list{yun:}$two.id{/yun}">
    	<td width="50"><input type="checkbox" value="{yun:}$two.id{/yun}" name='del[]' onclick='unselectall()' rel="del_chk" /></td>
		<td class="ud" >{yun:}$two.id{/yun}</td>
		<td   align="left" colspan="2">&nbsp;&nbsp;&nbsp;&nbsp;
        二级分类：┗<span onClick="checkname('{yun:}$two.id{/yun}');" id="name{yun:}$two.id{/yun}" style="cursor:pointer;">{yun:}$two.name{/yun}</span>
        <input class="input-text hidden" type="text" id="inputname{yun:}$two.id{/yun}"value="{yun:}$two.name{/yun}" onBlur="subname('{yun:}$two.id{/yun}','index.php?m=zph_space&c=ajax');">
		<b id="img{yun:}$two.id{/yun}"><a href="javascript:;" onclick="showclassall('{yun:}$two.id{/yun}','1');"><img src="images/iconv/jia.png"></a></b>
        </td>
        <td><span onClick="checksort('{yun:}$two.id{/yun}');" id="sort{yun:}$two.id{/yun}" style="cursor:pointer;">{yun:}$two.sort{/yun}</span>
        <input class="input-text hidden" type="text" id="input{yun:}$two.id{/yun}" size="10" value="{yun:}$two.sort{/yun}" onBlur="subsort('{yun:}$two.id{/yun}','index.php?m=zph_space&c=ajax');"></td>
		<td class="ud"><A href="javascript:void(0)" onClick="layer_del('确定要删除？', 'index.php?m=zph_space&c=del&delid={yun:}$two.id{/yun}');"class="admin_cz_sc">删除</a></td>
	</tr>
    {yun:}foreach item=three from=$threejob[$two_class_id]{/yun}
    {yun:}assign var="three_class_arr" value=$threejob[$two_class_id]{/yun}
	<tr align="center" id="list{yun:}$three.id{/yun}" class="class{yun:}$two.id{/yun}" style="display:none;">
    	<td width="50"><input type="checkbox" value="{yun:}$three.id{/yun}" name='del[]' onclick='unselectall()' rel="del_chk" /></td>
		<td class="ud">{yun:}$three.id{/yun}</td>
		<td class="ud"  align="left">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         ┗<span onClick="checkname('{yun:}$three.id{/yun}');" id="name{yun:}$three.id{/yun}" style="cursor:pointer;">{yun:}$three.name{/yun}</span>
        <input class="input-text hidden" type="text" id="inputname{yun:}$three.id{/yun}"value="{yun:}$three.name{/yun}" onBlur="subname('{yun:}$three.id{/yun}','index.php?m=zph_space&c=ajax');"></td>
        <td>
			<span onClick="checkprice('{yun:}$three.id{/yun}');" id="price{yun:}$three.id{/yun}" style="cursor:pointer;">{yun:}$three.price{/yun}</span>
			<input class="input-text hidden" type="text" id="inputprice{yun:}$three.id{/yun}" size="10" value="{yun:}$three.price{/yun}" onBlur="subprice('{yun:}$three.id{/yun}');">
		</td>
        <td><span onClick="checksort('{yun:}$three.id{/yun}');" id="sort{yun:}$three.id{/yun}" style="cursor:pointer;">{yun:}$three.sort{/yun}</span>
        <input class="input-text hidden" type="text" id="input{yun:}$three.id{/yun}" size="10" value="{yun:}$three.sort{/yun}" onBlur="subsort('{yun:}$three.id{/yun}','index.php?m=zph_space&c=ajax');"></td>
		<td class="ud"><A href="javascript:void(0)" onClick="layer_del('确定要删除？', 'index.php?m=zph_space&c=del&delid={yun:}$three.id{/yun}');"class="admin_cz_sc">删除</a></td>
	</tr>
	
    {yun:}/foreach{/yun}
	{yun:}/foreach{/yun}
	{yun:}/if{/yun}
  <tr>
    <td align="center"><input type="checkbox" id='chkAll2' onclick='CheckAll2(this.form)' /></td>
    <td colspan="5" >
    <label for="chkAll2">全选</label>&nbsp;
    <input class="admin_button"  type="button" name="delsub" value="删除所选"  onclick="return really('del[]')"/></td>
    </tr>
	</tbody>
</table>
</form>
</div>
</div>
</div> 
</body>
</html>